<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MyBatis-Plus：高效MyBatis增强工具</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.6;
            color: #333;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
        }
        .hover-scale {
            transition: transform 0.3s ease;
        }
        .hover-scale:hover {
            transform: translateY(-3px);
        }
        .feature-icon {
            font-size: 2rem;
            color: #6e48aa;
            margin-bottom: 1rem;
        }
        .code-block {
            background: #2d2d2d;
            color: #f8f8f2;
            border-radius: 8px;
            font-family: 'Courier New', Courier, monospace;
        }
        .highlight-word {
            position: relative;
            z-index: 1;
        }
        .highlight-word::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 0;
            width: 100%;
            height: 6px;
            background: rgba(110, 72, 170, 0.3);
            z-index: -1;
            transition: height 0.3s ease;
        }
        .highlight-word:hover::after {
            height: 12px;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 md:px-0">
        <div class="container mx-auto max-w-5xl flex flex-col items-center text-center">
            <div class="inline-block bg-white bg-opacity-20 px-4 py-2 rounded-full mb-6">
                <span class="text-sm font-medium">MYBATIS 增强工具</span>
            </div>
            <h1 class="text-4xl md:text-6xl font-bold mb-6 font-serif">
                MyBatis-<span class="highlight-word">Plus</span>
            </h1>
            <p class="text-xl md:text-2xl max-w-3xl leading-relaxed opacity-90 mb-10">
                一个基于 MyBatis 的增强工具，旨在简化 MyBatis 的使用，提供便捷功能以提高开发效率
            </p>
            <div class="flex flex-wrap justify-center gap-4">
                <a href="#features" class="bg-white text-purple-700 hover:bg-purple-100 px-6 py-3 rounded-lg font-medium hover-scale transition-all shadow-md">
                    核心特性 <i class="fas fa-arrow-down ml-2"></i>
                </a>
                <a href="#examples" class="bg-transparent border-2 border-white hover:bg-white hover:text-purple-700 px-6 py-3 rounded-lg font-medium hover-scale transition-all">
                    使用示例 <i class="fas fa-code ml-2"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- Introduction -->
    <section class="py-16 px-4 md:px-0">
        <div class="container mx-auto max-w-5xl">
            <div class="bg-white rounded-xl shadow-lg p-8 md:p-12">
                <div class="flex items-center mb-8">
                    <div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mr-4">
                        <i class="fas fa-bolt text-purple-600 text-xl"></i>
                    </div>
                    <h2 class="text-2xl font-bold font-serif">MyBatis-Plus 简介</h2>
                </div>
                <p class="text-lg text-gray-700 mb-6">
                    MyBatis-Plus 在 MyBatis 的基础上，增加了许多自动化和简化操作的功能，使得开发人员可以更快速地进行数据访问层的开发。它旨在简化 MyBatis 的使用，同时提供了一些便捷的功能，以提高开发效率。
                </p>
                <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mt-8">
                    <div class="bg-purple-50 p-4 rounded-lg text-center">
                        <div class="text-purple-600 text-2xl mb-2">
                            <i class="fas fa-database"></i>
                        </div>
                        <span class="font-medium">简化CRUD</span>
                    </div>
                    <div class="bg-blue-50 p-4 rounded-lg text-center">
                        <div class="text-blue-600 text-2xl mb-2">
                            <i class="fas fa-cubes"></i>
                        </div>
                        <span class="font-medium">内置插件</span>
                    </div>
                    <div class="bg-green-50 p-4 rounded-lg text-center">
                        <div class="text-green-600 text-2xl mb-2">
                            <i class="fas fa-magic"></i>
                        </div>
                        <span class="font-medium">代码生成</span>
                    </div>
                    <div class="bg-yellow-50 p-4 rounded-lg text-center">
                        <div class="text-yellow-600 text-2xl mb-2">
                            <i class="fas fa-rocket"></i>
                        </div>
                        <span class="font-medium">高效开发</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Key Features -->
    <section id="features" class="py-16 px-4 md:px-0 bg-gray-50">
        <div class="container mx-auto max-w-5xl">
            <h2 class="text-3xl font-bold text-center mb-12 font-serif">MyBatis-Plus <span class="highlight-word">关键特性</span></h2>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div class="bg-white p-8 rounded-xl shadow-md hover-scale hover:shadow-lg transition-all">
                    <div class="feature-icon">
                        <i class="fas fa-robot"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-4">自动化的 CRUD 操作</h3>
                    <p class="text-gray-700">
                        提供基本的 CRUD 操作方法，如 <code class="bg-gray-100 px-2 py-1 rounded">selectById</code>, <code class="bg-gray-100 px-2 py-1 rounded">insert</code>, <code class="bg-gray-100 px-2 py-1 rounded">updateById</code> 等，通过继承 <code class="bg-gray-100 px-2 py-1 rounded">BaseMapper</code> 接口自动实现，减少重复代码。
                    </p>
                </div>
                
                <div class="bg-white p-8 rounded-xl shadow-md hover-scale hover:shadow-lg transition-all">
                    <div class="feature-icon">
                        <i class="fas fa-layer-group"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-4">内置分页插件</h3>
                    <p class="text-gray-700">
                        提供简单易用的分页功能，通过配置分页插件，轻松实现数据